/**
 * 
 */
package co.fitstart.entity.user.profile;

import javax.persistence.Column;

/**
 * @author Thinkpad
 *
 */
public class Wechat {
    
    /** 微信账号 */
    @Column(name = "wechat_number")
    private String code;
    
    /** 微信二维码地址 */
    @Column(name = "qrcode_path")
    private String qrcode;
    
    /**
     * The default constructor
     */
    public Wechat() {
        
    }
    
    /**
     * 
     * @param code
     * @param qrcode
     */
    public Wechat(String code, String qrcode) {
        this.code = code;
        this.qrcode = qrcode;
    }
    
    /**
     * 
     * @param wechat
     * @return
     */
    public Wechat editWechat(Wechat wechat) {
    	this.code = wechat.getCode();
    	this.qrcode = wechat.getQrcode();
        return this;
    }
    
    /**
     * 
     * @param code
     * @param qrcode
     * @return
     */
    public Wechat editWechat(String code, String qrcode) {
        this.code = code;
        this.qrcode = qrcode;
        return this;
    }
    
    /**
     * 
     * @param code
     * @return
     */
    public Wechat editCode(String code) {
        this.code = code;
        return this;
    }
    
    /**
     * 
     * @param qrcode
     * @return
     */
    public Wechat editQrcode(String qrcode) {
        this.qrcode = qrcode;
        return this;
    }
    
    /**
     * @return the code
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return the qrcode
     */
    public String getQrcode() {
        return this.qrcode;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param qrcode the qrcode to set
     */
    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

}
